﻿<Window xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:tn="clr-namespace:WPFTaskbarNotifier" xmlns:Notify="clr-namespace:HudsonMonitor.Notify" mc:Ignorable="d" x:Class="HudsonMonitor.MainWindow" Title="Hudson Monitor" Height="244" Width="300" Icon="pack://application:,,,/Resources/hudsonicon.ico" WindowStartupLocation="CenterScreen" ResizeMode="NoResize">
	<Window.Background>
		<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
			<GradientStop Color="#FF999999" Offset="1" />
			<GradientStop Color="White" />
		</LinearGradientBrush>
	</Window.Background> 
    

	<Grid>
		<Grid.RowDefinitions>
			<RowDefinition />
            <RowDefinition />
			<RowDefinition />
		</Grid.RowDefinitions>
		<Grid.ColumnDefinitions>
			<ColumnDefinition />
		</Grid.ColumnDefinitions>

		<tn:NotifyIcon x:Name="NotifyIcon" Text="Hudson Build Monitor" Icon="pack://application:,,,/Resources/hudsonicon.ico" MouseDoubleClick="NotifyIconDoubleClick">
			<tn:NotifyIcon.ContextMenu>
				<ContextMenu>
					<MenuItem Header="Show Message" Click="NotifyIconShowMessageClick" />
					<MenuItem Header="Open" Click="NotifyIconOpenClick" />
					<Separator />
					<MenuItem Header="Exit" Click="NotifyIconExitClick" />
				</ContextMenu>
			</tn:NotifyIcon.ContextMenu>
		</tn:NotifyIcon>

		<StackPanel Grid.Column="0" Grid.Row="0" Orientation="Vertical">
			<Menu VerticalAlignment="Top">
				<Menu.Background>
					<LinearGradientBrush EndPoint="0,1" StartPoint="0,0">
						<GradientStop Color="#FFF6F6F6" Offset="0.25" />
						<GradientStop Color="#FFEAE8E8" Offset="0.25" />
						<GradientStop Color="#FFDCD9D9" Offset="0.8" />
						<GradientStop Color="#FFA5A5A5" Offset="1" />
					</LinearGradientBrush>
				</Menu.Background>
				<MenuItem Header="Settings">
					<MenuItem x:Name="menuSettings" Header="Settings" Click="OnMenuSettingClicked" />
				</MenuItem>
				<MenuItem Header="About">
					<MenuItem x:Name="AboutMenuItem" Header="About" Click="OnAboutMenuItemClicked" />
				</MenuItem>
			</Menu>
			<StackPanel Orientation="Horizontal">
				<Label Content="Overall Hudson status:" HorizontalAlignment="Left" x:Name="label1" VerticalAlignment="Top" FontSize="18" Foreground="#FF77AAE4" FontWeight="Bold" />
				<Label Content="Status unknown..." HorizontalAlignment="Left" x:Name="labelStatus" VerticalAlignment="Top" FontSize="18" Foreground="#FF77AAE4"/>
			</StackPanel>
		</StackPanel>

		<Button x:Name="ButtonStatus" Content="" Width="60" Height="60" Grid.Column="0" Grid.Row="0" Grid.RowSpan="3" Style="{DynamicResource ButtonStyle1}" Margin="0,0,20,0" HorizontalAlignment="Right" Click="ButtonStatusClick" ToolTip="Force update" />

        <StackPanel Grid.Row="1" Orientation="Vertical" Margin="0,5,0,33" Grid.RowSpan="2">
		<StackPanel Grid.Column="0" Grid.Row="1" Orientation="Horizontal" Margin="0,5,0,0">
			<Label Content="Projects" HorizontalAlignment="Left" x:Name="label3" VerticalAlignment="Top" d:LayoutOverrides="VerticalAlignment" />
            <ComboBox HorizontalAlignment="Left" x:Name="comboBoxProjects" VerticalAlignment="Top" Width="120" d:LayoutOverrides="VerticalAlignment" ToolTip="List of projects found on Hudson." />
		</StackPanel>
            <Button Content="Show hudson page" Height="23" Width="130" Name="buttonGoToPage" Margin="2" HorizontalAlignment="Left" Click="ButtonGoToPageClick" />
        </StackPanel>


        <StackPanel Grid.Row="2" Orientation="Horizontal" Margin="0,41,0,0">
			<StatusBar x:Name="statusBar" VerticalAlignment="Bottom" Width="300">
				<StatusBarItem Content="">
					<StatusBarItem.Background>
						<LinearGradientBrush EndPoint="0,1" StartPoint="0,0">
							<GradientStop Color="#FFF6F6F6" Offset="0.25" />
							<GradientStop Color="#FFEAE8E8" Offset="0.25" />
							<GradientStop Color="#FFDCD9D9" Offset="0.8" />
							<GradientStop Color="#FFA5A5A5" Offset="1" />
						</LinearGradientBrush>
					</StatusBarItem.Background>
				</StatusBarItem>
			</StatusBar>
		</StackPanel>
	</Grid>
</Window>